<?php
namespace app\common\model;

use think\Model;

class Member extends Model
{	
	public function MemberInfo()
    {
        return $this->hasOne('MemberInfo', 'mid', 'id');
    }

    public function MemberWallet()
    {
        return $this->hasOne('MemberWallet', 'mid', 'id');
    }

	public function getLastTimeAttr($value)
	{
		return date('Y-m-d H:i:s',$value);
	}
}